TARGET=embedded

OBJ_PATH?=./obj

CC  = gcc
CXX = g++

RM_CMD = del -r

OBJECTS=cpp_debug.o \
control.o \
cpp_main.o

DEFINES= \

CPP_FLAGS = \

C_FLAGS = \

LD_FLAGS = \
-Wl,-Map=gcc.map \

INCLUDES = \


# .PHONY .all
all:$(OBJECTS)
	cd $(OBJ_PATH) && $(CXX) $(DEFINES) $(LD_FLAGS) $^ -o embedded
clean:
	cd $(OBJ_PATH) && $(RM_CMD) *.o *.d *.lst *.map $(TARGET).exe $(TARGET)
%.o:%.cpp
	$(CXX) $(DEFINES) $(CPP_FLAGS) $(INCLUDES) -c $< -o $(OBJ_PATH)/$@